package mywebapp.tools.jsf;

public class HEADER_JSF
{
  protected static String nl;
  public static synchronized HEADER_JSF create(String lineSeparator)
  {
    nl = lineSeparator;
    HEADER_JSF result = new HEADER_JSF();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "";
  protected final String TEXT_2 = NL;
  protected final String TEXT_3 = "\" %>";
  protected final String TEXT_4 = NL;
  protected final String TEXT_5 = "\" %>";
  protected final String TEXT_6 = NL;
  protected final String TEXT_7 = "\" %>" + NL + "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> ";

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    stringBuffer.append( "<%@ page language=\"java\" contentType=\"text/html; charset=ISO-8859-1\" pageEncoding=\"ISO-8859-1");
    stringBuffer.append(TEXT_3);
    stringBuffer.append(TEXT_4);
    stringBuffer.append( "<%@ taglib prefix=\"f\" uri=\"http://java.sun.com/jsf/core");
    stringBuffer.append(TEXT_5);
    stringBuffer.append(TEXT_6);
    stringBuffer.append( "<%@ taglib prefix=\"h\" uri=\"http://java.sun.com/jsf/html");
    stringBuffer.append(TEXT_7);
    return stringBuffer.toString();
  }
}
